from abc import ABCMeta, abstractmethod


class MinSpider(metaclass=ABCMeta):
    """
      爬取分钟数据
    """

    @abstractmethod
    def crawl1min(self): pass

    @abstractmethod
    def crawl5min(self): pass

    @abstractmethod
    def crawl15min(self): pass

    @abstractmethod
    def crawl30min(self): pass

    @abstractmethod
    def crawl45min(self): pass

    @abstractmethod
    def crawlOtherMin(self): pass

class HourSpider(metaclass=ABCMeta):
    """
    爬取小时数据
    """
    @abstractmethod
    def crawl1hour(self): pass

    @abstractmethod
    def crawl4hour(self): pass

    @abstractmethod
    def crawlOtherHour(self): pass

class DaySpider(metaclass=ABCMeta):
    @abstractmethod
    def crawlDay(self): pass

class WeekSpider(metaclass=ABCMeta):
    @abstractmethod
    def crawlWeek(self): pass

class MonthSpider(metaclass=ABCMeta):
    @abstractmethod
    def crawlMonth(self): pass


class BarSpider(MinSpider, HourSpider, DaySpider, WeekSpider, MonthSpider):
     pass


class AbstractBarSpider(BarSpider):
    pass

